<?php 
echo $this->Html->css('../plugins/fancybox/jquery.fancybox-1.3.4');		
echo $this->Html->script('../plugins/fancybox/jquery.mousewheel-3.0.4.pack');
echo $this->Html->script('../plugins/fancybox/jquery.fancybox-1.3.4.pack');
?>
			  
			  	  
			  <h1><?php echo $catname?></h1>
			  <div class="list-image-wrapper clearfix-after" style="text-align:center;">
			    <?php foreach($imagecats as $k2=>$v2){?>
			    
			    <div class="list-image-one <?php echo (($k2+1)%4==0)?"list-image-one-last":""?>">
			      <div class="image"><a href="<?php echo $this->Seo->link('/'.$this->params['controller'].'/detail/'.$v2[$uses[1]]['id'].'/'.Configure::read('Config.language'))?>">
			      <img class="imageFix" widthFix="134" heightFix="124" alt="<?php echo $v2[$uses[1]]['title']?>" src="<?php echo $this->webroot.'uploaded/Image/thumb/'.$v2[$uses[1]]['image']?>" /></a></div>			      
			    </div>
			    <h2><?php echo $v2[$uses[1]]['title']?></h2>
			    <?php } ?>
			    
			    <div class="clear"></div>
			  
			  </div>
			  
			  
			
			  <script type="text/javascript">

$("a.fancy").fancybox({
	'width'				: '100%',
	'height'			: '100%',
	'nextClick'			:true, 
	'autoScale'			: false,
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
		
	
});
</script>